namespace PrintTool.Models;

public class PdfFile
{
    public string FilePath { get; set; } = string.Empty;
    public string FileName { get; set; } = string.Empty;
    public int PrintCopies { get; set; } = 1;
    public bool IsColorPrint { get; set; } = false;
    public string SelectedPrinter { get; set; } = string.Empty;
    public bool IsSelected { get; set; } = true;
    public int PageCount { get; set; } = 0;
    public DateTime AddedTime { get; set; } = DateTime.Now;

    public PdfFile(string filePath)
    {
        FilePath = filePath;
        FileName = Path.GetFileName(filePath);
    }

    public override string ToString()
    {
        return $"{FileName} (副本: {PrintCopies}, {(IsColorPrint ? "彩色" : "黑白")})";
    }
} 